package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the resticket database table.
 *
 */
@NamedQuery(name="Resticket.findAll", query="SELECT r FROM Resticket r")
@Entity
@Table(name = "rmt_resticket")
public class Resticket extends Ticket implements Serializable {
	private static final long serialVersionUID = 1L;


	private int quantity;

	//bi-directional one-to-one association to Ticket
	@OneToOne
	@JoinColumn(name="ID")
	private Ticket ticket;

	//bi-directional many-to-one association to Measureunit
	@ManyToOne
	@JoinColumn(name="idMeasureUnit")
	private Measureunit measureunit;

	//bi-directional many-to-one association to Resource
	@ManyToOne
	@JoinColumn(name="idResource")
	private Resource resource;

	/**
	 *
	 */
	public Resticket() {
	}

	/**
	 * @return
	 */
	public int getQuantity() {
		return this.quantity;
	}

	/**
	 * @param quantity
	 */
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	/**
	 * @return
	 */
	public Ticket getTicket() {
		return this.ticket;
	}

	/**
	 * @param ticket
	 */
	public void setTicket(Ticket ticket) {
		this.ticket = ticket;
	}

	/**
	 * @return
	 */
	public Measureunit getMeasureunit() {
		return this.measureunit;
	}

	/**
	 * @param measureunit
	 */
	public void setMeasureunit(Measureunit measureunit) {
		this.measureunit = measureunit;
	}

	/**
	 * @return
	 */
	public Resource getResource() {
		return this.resource;
	}

	/**
	 * @param resource
	 */
	public void setResource(Resource resource) {
		this.resource = resource;
	}

}